package com.test.springbootdemo.exit;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;


//@Component
public class ExitBean1 implements DisposableBean {
    @Override
    public void destroy() throws Exception {
        System.out.println("关闭...");
    }
}
